class BodyFatDataOption {
  final int type;
  final int sex;
  final int age;
  final double weight;
  final int height;
  final int adc;

  BodyFatDataOption(
      {required this.type,
      required this.sex,
      required this.age,
      required this.weight,
      required this.height,
      required this.adc});

  Map<String, dynamic> toMap() {
    return {
      'type': type,
      'sex': sex,
      'age': age,
      'weight': weight,
      'height': height,
      'adc': adc,
    };
  }

  factory BodyFatDataOption.fromMap(Map<String, dynamic> map) {
    return BodyFatDataOption(
      type: map['type'] as int,
      sex: map['sex'] as int,
      age: map['age'] as int,
      weight: map['weight'] as double,
      height: map['height'] as int,
      adc: map['adc'] as int,
    );
  }
}
